<!doctype html>
<html lang="en">
<head>
    <title>Code coverage report for src/components/MCS/Iot/Sensor/List.vue</title>
    <meta charset="utf-8" />
    <link rel="stylesheet" href="..\..\..\..\..\prettify.css" />
    <link rel="stylesheet" href="..\..\..\..\..\base.css" />
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <style type='text/css'>
        .coverage-summary .sorter {
            background-image: url(..\..\..\..\..\sort-arrow-sprite.png);
        }
    </style>
</head>
<body>
<div class='wrapper'>
  <div class='pad1'>
    <h1>
      <a href="..\..\..\..\..\index.html">All files</a> / <a href="index.html">src/components/MCS/Iot/Sensor</a> List.vue
    </h1>
    <div class='clearfix'>
      <div class='fl pad1y space-right2'>
        <span class="strong">0% </span>
        <span class="quiet">Statements</span>
        <span class='fraction'>0/36</span>
      </div>
      <div class='fl pad1y space-right2'>
        <span class="strong">0% </span>
        <span class="quiet">Branches</span>
        <span class='fraction'>0/24</span>
      </div>
      <div class='fl pad1y space-right2'>
        <span class="strong">0% </span>
        <span class="quiet">Functions</span>
        <span class='fraction'>0/12</span>
      </div>
      <div class='fl pad1y space-right2'>
        <span class="strong">0% </span>
        <span class="quiet">Lines</span>
        <span class='fraction'>0/36</span>
      </div>
    </div>
  </div>
  <div class='status-line low'></div>
<pre><table class="coverage">
<tr><td class="line-count quiet">1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303</td><td class="line-coverage quiet"><span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span></td><td class="text"><pre class="prettyprint lang-js">&lt;template&gt;
  &lt;div o-Container&gt;
    &lt;o-list v-bind:source="list.sensor"
            v-bind="{viewed:view,modified:modify,searched:search}"/&gt;
    &lt;div class="modal fade text-center" id="SensorModifyPanel" tabindex="-1" role="dialog"
         aria-labelledby="myModalLabel"
         aria-hidden="true"&gt;
      &lt;div class="modal-dialog"&gt;
        &lt;div class="modal-content"&gt;
          &lt;div class="modal-body text-left"&gt;
            &lt;o-item v-bind:source="item.sensor" v-bind="{saved:save,backed:back}"&gt;&lt;/o-item&gt;
          &lt;/div&gt;
        &lt;/div&gt;&lt;!-- /.modal-content --&gt;
      &lt;/div&gt;&lt;!-- /.modal --&gt;
    &lt;/div&gt;
    &lt;div class="modal fade text-center" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel"
         aria-hidden="true"&gt;
      &lt;div class="modal-dialog"&gt;
        &lt;div class="modal-content"&gt;
          &lt;div class="modal-header"&gt;
            &lt;button type="button" class="close" data-dismiss="modal" aria-hidden="true"&gt;
              &amp;times;
            &lt;/button&gt;
            &lt;h4 class="modal-title" id="myModalLabel"&gt;
              {{receiveTitle}}采集数据列表
            &lt;/h4&gt;
          &lt;/div&gt;
          &lt;div class="modal-body text-left"&gt;
            &lt;o-list v-bind:source="list.receiveData"
                    v-bind="{exported:output,searched:search}"/&gt;
          &lt;/div&gt;
        &lt;/div&gt;&lt;!-- /.modal-content --&gt;
      &lt;/div&gt;&lt;!-- /.modal --&gt;
    &lt;/div&gt;
  &lt;/div&gt;
&lt;/template&gt;
&nbsp;
&lt;script&gt;
  export default {
    name: "mms_iot_sensor_list", /* 这个name暂时不知道用啥用，根据官方文档说的是方便排错的 */
<span class="fstat-no" title="function not covered" >    data() {</span>
<span class="cstat-no" title="statement not covered" >      return {</span>
        octopus: this.$parent.octopus,
        list: {
          sensor: {
            data: {
              id: 70, // 菜单表的八爪鱼ID
            }
          },
          receiveData: {
            data: {
              id: null,
              cellData: [],
              height: "300px"
            }
          }
        },
        item: {
          sensor: {
            // 以下参数默认由组件内部创建，但是如果有需要，开发人员可在这里提前设置，组件将按照您的预期渲染。
            // cache: false,
            // control: null,
            // dataExtend: null,
            data: {
              id: 64,
              value: "",
              cellData: [
                {name: "DeviceID"},
                {name: "Name"},
                {name: "ModbusID"},
                {name: "TypeID"},
                {name: "BerthID"},
                {name: "SpaceID"},
                {name: "ModelID"},
                {name: "IsRule"},
                {name: "RuleList"},
                {name: "XAxis"},
                {name: "YAxis"},
                {name: "CreateTime"},
              ]
            },
          },
        },
        receiveTitle: ""
      }
    },
<span class="fstat-no" title="function not covered" >    created: function () {</span>
<span class="cstat-no" title="statement not covered" >      this.list.sensor.data.cellData = [</span>
        // {name: "ID",  width: 50, show: true},
        {
          name: "ProjectID",
          width: 70,
          searchKey: "=",
          show: false,
          filterKey: "=",
          filterValue: this.octopus.passport.project,
          show: false
        },
        {
          name: "BuildingID",
          width: 100,
          searchKey: "=",
          link: [{mapping: "ProjectID", value: this.octopus.passport.project}]
        },
        {name: "FloorID", width: 50, searchKey: "=", link: [{binding: "BuildingID", mapping: "BuildingID"}]},
        {name: "DeviceID", width: 130},
        {name: "Name", width: 120, searchKey: "LIKE"},
        {name: "TypeID", width: 70, searchKey: "=", filterKey: "&gt;", filterValue: "0"},// 确保配置完了才给呈现给客户，否则只有SAAS平台管理端才能看见。
        {name: "BerthID", width: 200, searchKey: "="},
        {name: "SpaceID", width: 100, searchKey: "="},
        // {name: "ModelID", width: 150, searchKey: "="},
        {name: "ModelIDValue", width: 200, show: false},
        // {name: "ModbusID", width: 80},
        {name: "IsRule", width: 60,},
        {name: "RuleList", width: 200,},
        {name: "RECount", width: 60,},
        {name: "IntervalMinutes", width: 70},
        {name: "LastReceiveTime", width: 150},
        {name: "CreateTime", width: 160},
      ]
    },
    methods: {
<span class="fstat-no" title="function not covered" >      create: function () {</span>
<span class="cstat-no" title="statement not covered" >        this.octopus.router.jump("/MMS/Cluster/Build/Modify");</span>
      },
<span class="fstat-no" title="function not covered" >      output: function (data) {</span>
        // 导出以后，回调这里给客户端操作。
        // 核心思想是cellData包含search数据（不管有没有），回传以后发送export指令，后台api会直接返回导出的数据提供下载。
<span class="cstat-no" title="statement not covered" >        alert("export: get cell data is " + JSON.stringify(data));</span>
      },
<span class="fstat-no" title="function not covered" >      search: function (cell) {</span>
&nbsp;
      },
<span class="fstat-no" title="function not covered" >      view: function (row) {</span>
<span class="cstat-no" title="statement not covered" >        let isLoad = true;</span>
        // 深航空气质量
<span class="cstat-no" title="statement not covered" >        if (row.ModelIDValue == 2) {</span>
<span class="cstat-no" title="statement not covered" >          this.list.receiveData.data.id = 80;</span>
<span class="cstat-no" title="statement not covered" >          this.list.receiveData.data.cellData = [</span>
            {name: "BuildingID", width: 70},
            {name: "FloorID", width: 70},
            {name: "DeviceID", width: 150},
            {name: "SensorID", width: 70, filterKey: "=", filterValue: row.ID},
            {name: "Qos", width: 40},
            {name: "FIndex", width: 50},
            {name: "FPort", width: 60,},
            {name: "ADR", width: 40,},
            {name: "RSSI", width: 50, searchKey: "="},
            {name: "SNR", width: 50, searchKey: "="},
            {name: "Frequency"},
            {name: "Prop_1", width: 150, searchKey: "="},
            {name: "Prop_2", width: 150},
            {name: "Prop_3", width: 150},
            {name: "CreateTime", width: 160},
          ];
        }
        //迪勤空气质量
<span class="cstat-no" title="statement not covered" >        else if (row.ModelIDValue == 3 || row.ModelIDValue == 6) {</span>
<span class="cstat-no" title="statement not covered" >          this.list.receiveData.data.id = 79;</span>
<span class="cstat-no" title="statement not covered" >          this.list.receiveData.data.cellData = [</span>
            {name: "BuildingID", width: 70},
            {name: "FloorID", width: 70},
            {name: "DeviceID", width: 150},
            {name: "SensorID", width: 70, filterKey: "=", filterValue: row.ID},
            {name: "Qos", width: 40},
            {name: "FIndex", width: 50},
            {name: "FPort", width: 60,},
            {name: "ADR", width: 40,},
            {name: "RSSI", width: 50, searchKey: "="},
            {name: "SNR", width: 50, searchKey: "="},
            {name: "Frequency"},
            {name: "Prop_1", width: 150, searchKey: "="},
            {name: "Prop_2", width: 150},
            {name: "Prop_3", width: 150},
            {name: "Prop_4", width: 150},
            {name: "Prop_5", width: 150},
            {name: "Prop_6", width: 150},
            {name: "CreateTime", width: 160},
          ];
        }
        //创客汇仁
<span class="cstat-no" title="statement not covered" >        else if (row.ModelIDValue == 25) {</span>
<span class="cstat-no" title="statement not covered" >            this.list.receiveData.data.id = 142;</span>
<span class="cstat-no" title="statement not covered" >            this.list.receiveData.data.cellData = [</span>
                {name: "BuildingID", width: 70},
                {name: "FloorID", width: 70},
                {name: "DeviceID", width: 150},
                {name: "SensorID", width: 70, filterKey: "=", filterValue: row.ID},
                {name: "Qos", width: 40},
                {name: "FIndex", width: 50},
                {name: "FPort", width: 60,},
                {name: "ADR", width: 40,},
                {name: "RSSI", width: 50, searchKey: "="},
                {name: "SNR", width: 50, searchKey: "="},
                {name: "Frequency"},
                {name: "Prop_1", width: 150, searchKey: "="},
                {name: "Prop_2", width: 150},
                {name: "Prop_3", width: 150},
                {name: "Prop_4", width: 150},
                {name: "Prop_5", width: 150},
                {name: "Prop_6", width: 150},
                {name: "Prop_7", width: 150},
                {name: "CreateTime", width: 160},
            ];
        }
        // 三相电表
<span class="cstat-no" title="statement not covered" >        else if (row.ModelIDValue == 1 || row.ModelIDValue == 5 || row.ModelIDValue == 8 || row.ModelIDValue == 9 || row.ModelIDValue == 10 || row.ModelIDValue == 12 || row.ModelIDValue == 16 || row.ModelIDValue == 22|| row.ModelIDValue == 23) {</span>
<span class="cstat-no" title="statement not covered" >          this.list.receiveData.data.id = 74;</span>
<span class="cstat-no" title="statement not covered" >          this.list.receiveData.data.cellData = [</span>
            {name: "BuildingID", width: 70},
            {name: "FloorID", width: 70},
            {name: "DeviceID", width: 150},
            {name: "SensorID", width: 70, filterKey: "=", filterValue: row.ID},
            {name: "Qos", width: 40},
            {name: "FIndex", width: 50},
            {name: "FPort", width: 60,},
            {name: "ADR", width: 40,},
            {name: "RSSI", width: 70, searchKey: "="},
            {name: "SNR", width: 70, searchKey: "="},
            {name: "Frequency"},
            {name: "Prop_1", width: 70, searchKey: "="},
            {name: "Prop_2", width: 70},
            {name: "Prop_3", width: 70},
            {name: "Prop_4", width: 70},
            {name: "Prop_5", width: 70},
            {name: "Prop_6", width: 70},
            {name: "Prop_7", width: 70},
            {name: "Prop_8", width: 70},
            {name: "Prop_9", width: 70},
            {name: "Prop_10", width: 70},
            {name: "Prop_11", width: 70},
            {name: "CreateTime", width: 160},
          ];
        }
        //单相电表
        else if (row.ModelIDValue == 7 || row.ModelIDValue == 13 || row.ModelIDValue == 24) {
<span class="cstat-no" title="statement not covered" >          this.list.receiveData.data.id = 81;</span>
<span class="cstat-no" title="statement not covered" >          this.list.receiveData.data.cellData = [</span>
            {name: "BuildingID", width: 70},
            {name: "FloorID", width: 70},
            {name: "DeviceID", width: 150},
            {name: "SensorID", width: 70, filterKey: "=", filterValue: row.ID},
            {name: "Qos", width: 40},
            {name: "FIndex", width: 50},
            {name: "FPort", width: 60,},
            {name: "ADR", width: 40,},
            {name: "RSSI", width: 70, searchKey: "="},
            {name: "SNR", width: 70, searchKey: "="},
            {name: "Frequency"},
            {name: "Prop_1", width: 70, searchKey: "="},
            {name: "Prop_4", width: 70},
            {name: "Prop_7", width: 70},
            {name: "Prop_8", width: 70},
            {name: "Prop_9", width: 70},
            {name: "Prop_11", width: 70},
            {name: "CreateTime", width: 160},
          ];
        } else {
<span class="cstat-no" title="statement not covered" >          isLoad = false;</span>
<span class="cstat-no" title="statement not covered" >          this.octopus.tips.error("未准备好该类型的数据。");</span>
        }
&nbsp;
        //可以渲染
<span class="cstat-no" title="statement not covered" >        if (isLoad) {</span>
<span class="cstat-no" title="statement not covered" >          this.receiveTitle = row.Name;</span>
          // this.receiveTitle = JSON.stringify(row);
          // 清空分页数据
<span class="cstat-no" title="statement not covered" >          this.list.receiveData.data.pageData = {};</span>
          // 因为更新架构了，所以重新load之前要重新init一下，否则会报错，切记。
<span class="cstat-no" title="statement not covered" >          this.list.receiveData.control.init();</span>
<span class="cstat-no" title="statement not covered" >          this.list.receiveData.control.load();</span>
<span class="cstat-no" title="statement not covered" ><span class="fstat-no" title="function not covered" >          $(function () {</span></span>
<span class="cstat-no" title="statement not covered" >            $('#myModal').modal('show');</span>
          });
        }
      },
<span class="fstat-no" title="function not covered" >      modify: function (row) {</span>
<span class="cstat-no" title="statement not covered" >        this.item.sensor.data.value = row.ID;</span>
<span class="cstat-no" title="statement not covered" >        this.item.sensor.control.load();</span>
<span class="cstat-no" title="statement not covered" ><span class="fstat-no" title="function not covered" >        $(function () {</span></span>
<span class="cstat-no" title="statement not covered" >          $("#SensorModifyPanel").modal('show');</span>
        });
      },
<span class="fstat-no" title="function not covered" >      del: function (row) {</span>
<span class="cstat-no" title="statement not covered" >        alert("del key: " + JSON.stringify(row));</span>
      },
<span class="fstat-no" title="function not covered" >      save: function () {</span>
        // 刷新list
<span class="cstat-no" title="statement not covered" >        this.list.sensor.control.load();</span>
<span class="cstat-no" title="statement not covered" >        this.back();</span>
      },
<span class="fstat-no" title="function not covered" >      back: function () {</span>
<span class="cstat-no" title="statement not covered" >        $("#SensorModifyPanel").modal('hide');</span>
      }
    },
    props: ["oData"]
  }
&lt;/script&gt;
&nbsp;
&lt;style scoped&gt;
&nbsp;
&lt;/style&gt;
&nbsp;</pre></td></tr>
</table></pre>
<div class='push'></div><!-- for sticky footer -->
</div><!-- /wrapper -->
<div class='footer quiet pad2 space-top1 center small'>
  Code coverage
  generated by <a href="https://istanbul.js.org/" target="_blank">istanbul</a> at Mon Jan 20 2020 17:54:15 GMT+0800 (GMT+08:00)
</div>
</div>
<script src="..\..\..\..\..\prettify.js"></script>
<script>
window.onload = function () {
        if (typeof prettyPrint === 'function') {
            prettyPrint();
        }
};
</script>
<script src="..\..\..\..\..\sorter.js"></script>
</body>
</html>
